var Day;
(function (Day) {
    Day[Day["SUNDAY"] = 0] = "SUNDAY";
    Day[Day["MONDAY"] = 1] = "MONDAY";
    Day[Day["TUESDAY"] = 2] = "TUESDAY";
})(Day || (Day = {}));
console.log(Day.MONDAY, Day.TUESDAY);
var MyDay;
(function (MyDay) {
    MyDay[MyDay["Monday"] = 0] = "Monday";
    MyDay[MyDay["Tuesday"] = 2] = "Tuesday";
})(MyDay || (MyDay = {}));
console.log(MyDay.Tuesday);
// let day: MyDay.Tuesday = MyDay.Tuesday // TS2535
var day2 = 9; // day2类型为Day.MONDAY
var day3 = MyDay.Monday; // day3类型为MyDay
console.log(SomeDay.Sunday);
